<template>
	<view class="content">
		<view class="content-logo">
			<image lazy-load src="@/static/icon/index-select.png" class="content-logo-img"></image>
		</view>
		<view class="content-info">
			<view class="content-info-ent">
				<u-button @tap="send" class="content-info-ent-btn1" :ripple="true" ripple-bg-color="#909399">立即登录
				</u-button>
				<u-button @tap="send2" class="content-info-ent-btn2" ripple-bg-color="#909399">立即体验</u-button>
			</view>
			<view class="content-agreement">
				<label class="content-agreement-radio">
					<radio :checked="flag" @click="radio" class="radios" value="" /><text></text>
				</label>
				<text><text style="color: #F67972;">同意</text> 《用户协议》《隐私协议》《儿童隐私政策》</text>
			</view>

		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				flag: false,
			}
		},
		methods: {
			//协议按下小按钮
			radio(e) {
				this.flag = !this.flag
			},
			//是否勾选了协议
			btn() {
				uni.showToast({
					title: '请勾选同意协议',
					icon: "none"
				})
			},
			// 立即登录
			send() {
				if (this.flag == false) {
					this.btn()
				} else {
					uni.navigateTo({
						url: "/view/PhoneLogin/PhoneLogin"
					})
				}
			},

			// 立即体验
			send2() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			}

		}

	}
</script>

<style lang="scss">
	.content {
		background-color: #DC2C1F;
		height: 100vh;

		// logo图片位置
		&-logo {
			width: 100%;
			height: 300px;
			display: flex;
			justify-content: center;
			align-items: center;

			&-img {
				width: 150rpx;
				height: 150rpx;
			}
		}

		// 底下功能两个按钮
		&-info {
			position: absolute;
			bottom: 0;
			width: 100%;

			&-ent {
				width: 90%;
				margin: auto;

				&-btn1 {
					border-radius: 20px;
					color: #DC2C1F;

				}

				&-btn2 {
					background-color: transparent;
					margin-top: 30rpx;
					color: #FFFFFF;
					border-radius: 20px;
				}
			}
		}

		&-agreement {
			margin-top: 150rpx;
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 20rpx;
			color: #F8D6D4;
			margin-bottom: 50px;

			&-radio {}
		}
	}
</style>
